{{csrf_field()}}
<div class="layui-form-item">
    <label for="" class="layui-form-label">站点名称</label>
    <div class="layui-input-inline">
        <input type="text" name="name" value="{{@$config->name}}" class="layui-input" lay-verify="required">
    </div>
</div>
<div class="layui-form-item layui-form-text">
    <label class="layui-form-label">关键字（英文逗号分割）</label>
    <div class="layui-input-block">
        <textarea class="layui-textarea" name="keyword" placeholder=""
                  lay-verify="required">{{@$config->keyword}}</textarea>
    </div>
</div>
<div class="layui-form-item layui-form-text">
    <label class="layui-form-label">站点描述</label>
    <div class="layui-input-block">
        <textarea class="layui-textarea" name="description" lay-verify="required">{{@$config->description}}</textarea>
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">公众号二维码</label>
    <div class="layui-input-inline">
        <div class="layui-upload">
            <button type="button" class="layui-btn" id="uploadPic">上传</button>
            <div class="layui-upload-list">
                <ul id="layui-upload-box" class="layui-clear">
                    @if($config['code'])
                        <li>
                            <img src="{{ $config['code'] }}"/>
                            <p>上传成功</p>
                        </li>
                    @endif
                </ul>
                <input type="hidden" name="code" id="thumb" value="{{$config['code']}}"/>
            </div>
        </div>
    </div>
    <div class="layui-form-mid layui-word-aux">推荐上传图片大小不超过50k</div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">电话</label>
    <div class="layui-input-inline">
        <input type="text" name="tel" value="{{@$config->tel}}" lay-verify="required|phone" placeholder=""
               class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">邮箱</label>
    <div class="layui-input-inline">
        <input type="text" name="email" value="{{@$config->email}}" lay-verify="required|email" placeholder=""
               class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">地址</label>
    <div class="layui-input-inline">
        <input style="width: 500px;" type="text" name="address" value="{{@$config->address}}" lay-verify="required" placeholder=""
               class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <div class="layui-input-block">
        <button type="submit" class="layui-btn" lay-submit="" lay-filter="formDemo">确 认</button>
    </div>
</div>